<?php
    class quycachbs
    {
        public $MaQuyCach = 0;
		public $TenQuyCach = '';
		
		public function getList($order = '', $start = 0, $num = 30, $all = 0)
		{
			$db = new quycachdb();
			return $db->getList($this->MaQuyCach, $this->TenQuyCach, $order, $start, $num, $all);
		}
        
        public function add()
		{
			$db = new quycachdb();
			return $db->add($this->TenQuyCach);
		}
		
		public function update()
		{
			$db = new quycachdb();
			return $db->update($this->MaQuyCach,$this->TenQuyCach);
		}
		
		public function delete()
		{
			$db = new quycachdb();
			return $db->delete($this->MaQuyCach);
		}
        
        public function issetTypes()
		{
			$db = new quycachdb();
			return $db->issetTypes($this->MaQuyCach, $this->TenQuyCach);
		}
        
        public function issetType()
		{
			$db = new quycachdb();
			return $db->issetType($this->TenQuyCach);
		}
    }
?>